import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


// 引入vant组件库并全局注册
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

// 自动设置rem基准值
import 'amfe-flexible'

// 加载全局样式
import './styles/index.less'

// 引入dayjs
import '@/utils/dayjs'

// 引入mockjs
import '@/mockjs/mockjs'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this
  },
}).$mount('#app')
